package com.ugoodtech.mdcc.core.service;

/* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 * Written by Stone Shaw.
 */

import com.ugoodtech.mdcc.core.domain.ModuleAuthority;
import com.ugoodtech.mdcc.core.domain.Role;
import com.ugoodtech.mdcc.core.exception.VStarException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Set;

public interface RoleService {

    Page<Role> queryRole(Pageable pageable,String type);
    Role createRole(String roleName, Set<ModuleAuthority> moduleAuthorities,String desc) throws VStarException;
}
